package com.wyq.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wyq.service.impl.ProvinceCityServiceImpl;

/**
 * 获取省份城市数据
 * @author Fyj
 *
 */
public class ProvinceCityAction extends ActionSupport {
	private ProvinceCityServiceImpl provinceCityService;
	private List provinceCityList; 

	public void setProvinceCityService(ProvinceCityServiceImpl provinceCityService) {
		this.provinceCityService = provinceCityService;
	}
	
	public List getProvinceCityList() {
		return provinceCityList;
	}

	@Override
	public String execute() throws Exception {
		provinceCityList = provinceCityService.getProvinceCityData();
		//JSONArray jsonArr = JSONArray.fromObject(list);
		
		return SUCCESS;
		
	}
	

}
